package com.bo.startup;

import java.io.IOException;

import com.bo.gather.data.SearchRepeatData;

public class CleanLog extends Thread{

	@Override
	public void run() {
		SearchRepeatData searchRepeatData=new SearchRepeatData();
		while(true){
			try {
				//7天清理一次日志
				Thread.sleep(1000*60*60*24*7);
				searchRepeatData.cleanOldData();
			} catch (IOException e) {
				e.printStackTrace();
			} catch (InterruptedException e) {
				e.printStackTrace();
			}
		}
		
	}
	
	
}
